Add patch for "super gps"
authorJochen Sprickerhof <git@jochen.sprickerhof.de>
Tue, 24 Sep 2019 20:06:36 +0000 (22:06 +0200)
committerJochen Sprickerhof <git@jochen.sprickerhof.de>
Tue, 24 Sep 2019 20:06:36 +0000 (22:06 +0200)
Closes: #935373
Thanks: Tim Connors

debian/patches/0012-The-lezyne-super-gps-every-10th-ride-or-so-outputs-a.patch [new file with mode: 0644]
debian/patches/series

diff --git a/debian/patches/0012-The-lezyne-super-gps-every-10th-ride-or-so-outputs-a.patch b/debian/patches/0012-The-lezyne-super-gps-every-10th-ride-or-so-outputs-a.patch
new file mode 100644 (file)
index 0000000..bf930d8
--- /dev/null
@@ -0,0 +1,23 @@
+From: Tim Connors <tconnors@rather.puzzling.org>
+Date: Sat, 14 Sep 2019 22:06:06 +1000
+Subject: The lezyne "super gps", every 10th ride or so,
+ outputs a .fit file that is entirely valid other than a weird non 0/1 endian
+ field. Don't dump the data just because of that.
+
+---
+ garmin_fit.cc | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/garmin_fit.cc b/garmin_fit.cc
+index ad949f4..8f2b8e1 100644
+--- a/garmin_fit.cc
++++ b/garmin_fit.cc
+@@ -253,7 +253,7 @@ fit_parse_definition_message(uint8_t header)
+   // second byte is endianness
+   def->endian = fit_getuint8();
+   if (def->endian > 1) {
+-    fatal(MYNAME ": Bad endian field\n");
++    warning(MYNAME ": Unusual endian field (interpreting as big endian): %d\n",def->endian);
+   }
+   fit_data.endian = def->endian;
index f4937223b943c5f2bc6e4a3ef56e928a5f3b449b..64be841375da292e5bcb5b958e9598992d8056d5 100644 (file)
@@ -9,3 +9,4 @@ htmldoc-location
 0009-Don-t-pass-MAKEFLAGS-to-MAKE.patch
 0010-Fix-manpage-xml.patch
 cross.patch
+0012-The-lezyne-super-gps-every-10th-ride-or-so-outputs-a.patch